package net.hn.hnms.biz.cockpit.domain;


import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Table;

@Data
@NoArgsConstructor
@ExcelIgnoreUnannotated
@EqualsAndHashCode(callSuper=false)
@Table(name = "year_risk", schema = "cockpit", catalog = "huaneng-cockpit")
@ApiModel(value = "年隐患统计")
public class YearHiddenTrouble {

    @ApiModelProperty(value = "id")
    @TableField(value = "id", fill = FieldFill.INSERT)
    private String id;

    @ApiModelProperty(value = "指标日期(YYYY)")
    private String checkPeriod;

    @ApiModelProperty(value = "隐患总数")
    private String dangersCount;

    @ApiModelProperty(value = "整改数量")
    private String rectifyCount;

    @ApiModelProperty(value = "超时未整改")
    private String timeoutCount;

    @ApiModelProperty(value = "重大隐患数量")
    private String majorDanger;

    @ApiModelProperty(value = "矿编码")
    private String mineCode;

    public String getDangersCount() {
        if (dangersCount == null) {
            dangersCount = "0";
        }
        return dangersCount;
    }

    public String getRectifyCount() {
        if (rectifyCount == null) {
            rectifyCount = "0";
        }
        return rectifyCount;
    }

    public String getTimeoutCount() {
        if (timeoutCount == null) {
            timeoutCount = "0";
        }
        return timeoutCount;
    }

    public String getMajorDanger() {
        if (majorDanger == null) {
            majorDanger = "0";
        }
        return majorDanger;
    }

}
